﻿using Microsoft.Extensions.Options;
using System;
using System.Collections.Generic;
using System.Runtime.CompilerServices;
using System.Text;

namespace JESAI.HttpRequestMonitor.Options
{
    public class HttpRequestMonitorOptions : IOptions<HttpRequestMonitorOptions>
    {
        /// <summary>
        /// 节点名称
        /// </summary>
        public string Node { get; set; } = "Default";

        /// <summary>
        /// 是否开启
        /// </summary>
        public bool Enable { get; set; } = true;

        /// <summary>
        /// 是否过滤静态文件
        /// </summary>
        public bool FilterStaticFile { get; set; } = true;

        /// <summary>
        /// 过滤请求
        /// </summary>
        public string[] FilterRequest { get; set; } = new string[] { };

        /// <summary>
        /// 当前对象
        /// </summary>
        public HttpRequestMonitorOptions Value => this;
    }
}
